package com.maimao.model.goods.input;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 商品页评论过滤参数
 *
 * @author MaoLin Wang
 * @date 2021/1/28 1:46 下午
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CommentFilter implements Serializable {

    private static final long serialVersionUID = -8951814061787726426L;
    /**
     * 是否带图片
     */
    private Integer hasPicture;

    /**
     * 1 好评 2 中评 3差评
     */
    private Integer type;

    /**
     * 选中的sku商品的评价
     */
    private Long skuId;

    /**
     * 是否需要解释 comment-ms用到
     */
    private Integer needExplain;

    /**
     * 商品id ms用到
     */
    private Long goodsId;

    /**
     * ms用
     */
    private Long orderId;

    @Override
    public String toString() {
        return "CommentFilter{" +
                "hasPicture=" + hasPicture +
                ", type=" + type +
                ", skuId=" + skuId +
                ", needExplain=" + needExplain +
                ", goodsId=" + goodsId +
                ", orderId=" + orderId +
                '}';
    }
}
